package com.kedacom.ctsp.authz.access;

import com.kedacom.ctsp.authz.Authorize;
import com.kedacom.ctsp.authz.entity.AuthResource;
import com.kedacom.ctsp.authz.entity.Authentication;
import com.kedacom.ctsp.web.aop.context.MethodInterceptorContext;

import java.util.List;
import java.util.Set;

/**
 * 数据级别权限控制处理器接口,负责处理支持的权限控制配置
 *
 * @author xuwei
 */
public interface DataAccessHandler {

    boolean handle(Authentication auth, List<AuthResource> authResources, Authorize anno, MethodInterceptorContext paramContext);
}
